package invaliddotnetbusinesscomponentdependency;

import invaliddotnetbusinesscomponentdependency.InvalidDotNetBusinessComponentDependencyMatch;
import org.eclipse.viatra2.emf.incquery.runtime.api.IMatchProcessor;
import sysmodel.BusinessComponent;
import sysmodel.dotNetBusinessComponent;

/**
 * A match processor tailored for the InvalidDotNetBusinessComponentDependency pattern.
 * 
 * Clients should derive an (anonymous) class that implements the abstract process().
 * 
 */
public abstract class InvalidDotNetBusinessComponentDependencyProcessor implements IMatchProcessor<InvalidDotNetBusinessComponentDependencyMatch> {
  /**
   * Defines the action that is to be executed on each match.
   * @param pDotNetComponent the value of pattern parameter dotNetComponent in the currently processed match 
   * @param pOtherComponent the value of pattern parameter otherComponent in the currently processed match 
   * 
   */
  public abstract void process(final dotNetBusinessComponent dotNetComponent, final BusinessComponent otherComponent);
  
  @Override
  public void process(final InvalidDotNetBusinessComponentDependencyMatch match) {
    process(match.getDotNetComponent(), match.getOtherComponent());  				
    
  }
}
